babl, babl-cache: enable cache write, fix cache path processing
authorEdward E <develinthedetail@gmail.com>
Wed, 23 Nov 2016 22:33:29 +0000 (16:33 -0600)
committerØyvind Kolås <pippin@gimp.org>
Wed, 23 Nov 2016 23:04:07 +0000 (00:04 +0100)
1. babl.c/babl_exit(): Remove fixme to enable babl cache writing on windows.
2. babl-cache.c/mk_ancestry(): pass the modified path to mk_ancestry_iter().

babl/babl-cache.c
babl/babl.c

index 005fda20b68382e39a81dd25e0eecc907f43f58f..b215128ca9743633adb5d8a7f0003c7bee2bc5bb 100644 (file)
@@ -64,7 +64,7 @@ mk_ancestry (const char *path)
     if (*c == '\\')
       *c = '/';
 #endif
-  return mk_ancestry_iter (path);
+  return mk_ancestry_iter (copy);
 }
 
 static const char *fish_cache_path (void)
index 2b53d68a50327c56cce397ee990c28a9de727122..935a86081080d9a453c5bd4140f7599504d1810b 100644 (file)
@@ -160,10 +160,7 @@ babl_exit (void)
 {
   if (!-- ref_count)
     {
-#ifdef _WIN32  // XXX: fixme - make this work on windows
-#else
       babl_store_db ();
-#endif
 
       babl_extension_deinit ();
       babl_free (babl_extension_db ());;